package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.vo.EmployeeVo;

/**
 * The interface Employee service.
 */
public interface EmployeeService {

    /**
     * 员工登录
     *
     * @param employeeLoginDTO the employee login dto
     * @return employee employee
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     *
     * @param employeeDTO 员工参数
     */
    void create(EmployeeDTO employeeDTO);

    /**
     * 分頁查詢
     *
     * @param employeePageQueryDTO the employee page query dto
     * @return the page result
     */
    PageResult page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 启用或禁用
     *
     * @param id     the id
     * @param status the status
     */
    void enableOrDisable(Long id, Integer status);

    /**
     * 通过id回显信息
     *
     * @param id the id
     * @return the employee vo
     */
    EmployeeVo infoById(Long id);

    /**
     * 根据id修改员工信息
     *
     * @param employeeDTO the employee dto
     */
    void modifyById(EmployeeDTO employeeDTO);
}
